<?php 
/*
// "Easy Flexi Module" Module by CCC for Joomla! and Flexicontent 1.5.x
// Copyright (c) 2006 - 2010 ccomca.com All rights reserved.
// Released under the GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
// More info at http://www.ccomca.com/communaute/item/314-easy-flexi-module.html
// Designed and developed by the CCC team
// *** Last update: 02/05/2010 ***
*/

/*
// This file is an example.
// For display a custom field, add this : $item->myfield

*/

// no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<?php foreach ($list as $item) : ?>

<div class="item">
  <?php if ($item->src) : ?>
  <div class="imageefm<?php echo $params->get('image_position') == 1 ? ' right' : ' left'; ?>">
    <?php if ($params->get('link_image', 1)) : ?>
    <a href="<?php echo $item->link; ?>" alt="<?php echo $item->text; ?>"> <img src="<?php echo $item->thumb; ?>" alt="<?php echo $item->text; ?>" /> </a>
    <?php else : ?>
    <img src="<?php echo $item->thumb; ?>" alt="<?php echo $item->text; ?>" />
    <?php endif; ?>
  </div>
  <?php endif; ?>
  <div class="title"> <?php if ($item->date) : ?> <span class="date"><?php echo $item->date; ?></span> <?php endif; ?> <a href="<?php echo $item->link; ?>" class="mostread<?php echo $params->get('moduleclass_sfx'); ?>"> <?php echo $item->text; ?></a></div>
  <div class="description"> <?php echo $item->description; ?> </div>
  <?php if ($params->get('show_readmore', 0) == 0) : ?>
  <span class="readmore"> <a href="<?php echo $item->link; ?>" class="readon"> <?php echo ' ' . JText::sprintf('Read More', $items[$i]->title); ?> </a> </span>
  <?php endif; ?>
</div>
<?php endforeach; ?>